package com.yuanfeng.base.controller;


import com.yuanfeng.base.dto.IndexConfigDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName BasePcIndexConfigController
 * @Description
 * @Author cyp
 * @Date 2023-05-24 09:39:22
 * @Version 1.0
 **/
@RestController
@RequestMapping("base/pcIndexConfig")
public class BasePcIndexConfigController extends BaseController {


    /**
     * pc 首页 天天特价 特色专题 为你推荐 添加 修改
     */
    @PostMapping("/updatePcIndexConfig")
    public ResponseResult UPdatePcIndexConfig(@RequestBody IndexConfigDTO pcIndexConfig) {
        ResponseResult result = basePcIndexConfigService.updatePcIndexConfig(pcIndexConfig);
        return result;
    }
}

